package com.twd.netty.xuleihua;

public enum OperationType {
    STRING(1,String.class);


    public int id;
    public Class clazz;


    OperationType(int id, Class clazz) {
        this.id = id;
        this.clazz = clazz;
    }

    public static Class values(int a){
        for (OperationType value : OperationType.values()) {
            if(value.id  == a){
                return value.clazz;
            }
        }
        return Object.class;
    }
}
